package ru.braim.weather_app.utils.validators.models;

import ru.braim.weather_app.dto.region_type.RegionTypeRequestDTO;
import ru.braim.weather_app.models.RegionType;

public class RegionTypeValidator {

    public static RegionType getValidRegionType(RegionTypeRequestDTO regionTypeRequestDTO) {
        RegionType validRegionType = new RegionType();

        if (validRegionType.setType(regionTypeRequestDTO.getType())) {
            return validRegionType;
        }

        return null;
    }

}
